import axios from "axios";

export async function getGoodsOrder() {
  var resp = await axios.get("/api/pets/goodsOrder.do", {
    params: {
      method: "getAll",
    },
  });
  console.log(resp);
  return resp.data;
}

export async function updateGoodsOrder(goodsOrder,goodsOrderId) {
  var resp = await axios.get("/api/pets/goodsOrder.do", {
    params: {
      method: "updateGoodsOrder",
      goodsOrderId,
      
    },
  });
  console.log(resp);
  return resp.data;
}
